home *** CD-ROM | disk | FTP | other *** search
/ The 640 MEG Shareware Studio 4 / The 640 Meg Shareware Studio CD-ROM Volume IV (Data Express)(1994).ISO / wp / bedit30.zip / BEDIT.DOC next >
Text File  |  1993-06-08  |  33KB  |  709 lines

  1.                                     BEDIT
  2.                               Binary File Editor
  3.                                  USER'S GUIDE
  4.  
  5.                   Copyright 1990, 1993 by Gary C. Crider and
  6.                                Parity Solutions
  7.                                
  8.  
  9.  
  10. TABLE OF CONTENTS:
  11.  
  12.         What is BEDIT? ................................... 1.0
  13.         Getting started .................................. 2.0
  14.           The SET BEDIT= Environment Variable ............ 2.1
  15.           The BEDIT Command Line ......................... 2.2
  16.         Operational notes ................................ 3.0
  17.         The Keyboard and Display ......................... 4.0
  18.         Modifying Data ................................... 5.0
  19.           Filling a block of data ........................ 5.1
  20.         Deleting Data .................................... 6.0  
  21.         Inserting Data ................................... 7.0  
  22.         Using the clipboard (Cut, Paste, Copy) ........... 8.0
  23.         Locating Data .................................... 9.0
  24.           Go to a Position in the File ................... 9.1
  25.           Search for Data ................................ 9.2
  26.         Print the File ................................... 10.0
  27.         Save the File .................................... 11.0
  28.         Exiting BEDIT .................................... 12.0
  29.         Help ............................................. 13.0
  30.         A Useful Example - 
  31.           Modification of DOS 5's EDIT ................... 14.0
  32.         Installation ..................................... Appendix A
  33.         Disclaimer ....................................... Appendix B
  34.         Support .......................................... Appendix C
  35.         Registration ..................................... Appendix D
  36.  
  37.  
  38. 1.0 What Is BEDIT?
  39.  
  40.    One thing most of us learned early on after working on our first PC
  41. was that EDLIN, while useful, stank (stunk?)... was malodorous as an editor 
  42. of text files.  Soon there were hundreds of full screen text editors 
  43. available everywhere.  Even Microsoft finally came around and included EDIT 
  44. in DOS 5 to get us away from EDLIN.
  45.  
  46.    An early lesson that most who aspire to be power users learn is that not
  47. all changes we desire to make are in text files.  Sooner or later we end
  48. up patching an executable program, database, or strange format file that
  49. text editors will not handle.  Enter DEBUG.  Just as EDLIN was a pain for
  50. editing text files, DEBUG is a pain for editing binary files.  Strangely,
  51. few people have jumped out with binary editors and the few I have seen are 
  52. not much better than DEBUG.  Even Microsoft is making us stick with DEBUG,
  53. and as a bonus, have taken the documentation for DEBUG out of the DOS
  54. documentation.  I guess they feel it is too dangerous for ordinary mortals.
  55. My feeling is, it's my file and I'll corrupt it if I want to.
  56.  
  57.    BEDIT is a very easy-to-use full screen editor for binary (or text) 
  58. files.  You simply type over the hex or ASCII data much as you would with
  59. any text editor.  BEDIT ensures that you enter hex characters (0-9 and A-F)
  60. while you are in hex entry mode.  You will be able to see the hex and ASCII
  61. representations at all times whether you are editing in hex or ASCII.  
  62.  
  63.    Using BEDIT is so intuitive, I don't know why I'm writing this documen-
  64. tation or why you are reading it.  Perhaps we both like to move cautiously.
  65.  
  66.    You see a full screen of data at all times, not just a few bytes.  Paging
  67. through the file is as easy as hitting PgUp and PgDn, you don't have to
  68. enter hex displacements to get to the next page.
  69.  
  70.    I think you'll find, as we have at a Fortune 100 company (my day job),
  71. that BEDIT becomes one of the handiest tools you have.  You will use it
  72. much more than you now expect that you will.
  73.  
  74.    BEDIT automatically detects and uses any available LIM 4.0 EMS expanded
  75. memory.  This allows very large files to be edited.
  76.  
  77.  
  78.  
  79. 2.0 Getting Started
  80.  
  81. 2.1 The SET BEDIT= Environment Variable
  82.  
  83.  
  84.    BEDIT uses an environment variable and command line switches to customize
  85. its environment.  When BEDIT is started with no switches and no environment
  86. variables, the following defaults apply:
  87.  
  88.   - EMS memory is used only if the file being edited is too large to load
  89.     in conventional memory.
  90.  
  91.   - Color display is assumed.
  92.  
  93.   - International characters are not displayed in the ASCII portion of the
  94.     edit screen.  They can only be entered in hex and cannot be entered in
  95.     an ASCII search string.
  96.  
  97.   - Video writes to the edit window are direct to video memory.  CGA and MDA 
  98.     are unsupported, since it is assumed that video memory starts at 
  99.     B800:0000.
  100.  
  101.    Each of these can be changed.  Since a user will normally want to use
  102. the same options over and over, the best way to change them is with the
  103. SET BEDIT= command placed in AUTOEXEC.BAT.  The following parameters are
  104. allowed in the SET BEDIT= command:
  105.  
  106.    EMS -  This forces the program to be edited to be loaded in expanded
  107.           memory (LIM 4.0 EMS specification).  The primary use for this 
  108.           parameter is for testing changes made to the BEDIT program.  
  109.           Most users will want to use the default.  EMS may be specified
  110.           to allow additioinal file expansion with insertions.  Since you 
  111.           are limited by the amount of conventional or EMS memory available,
  112.           you may have access to more EMS memory than conventional memory.
  113.  
  114.    MONO - Displays the screens in monochrome.  If you use a Monochrome
  115.           Display Adapter instead of a VGA adapter, you will need to
  116.           also specify BIOS.
  117.  
  118.    INTL - Allows display of the ASCII international character set (128-
  119.           168).  It also allows international characters to be input while
  120.           editing in ASCII mode and in ASCII search strings.
  121.  
  122.    BIOS - Uses the RAM BIOS interrupts to write to the edit window.  This
  123.           allows use of MDA, CGA and other non-VGA adapters.  It may also
  124.           be required for some extended text modes, depending on the
  125.           video adapter being used.  Specify BIOS if you expirience any
  126.           problems with the display of data in the edit window.
  127.  
  128.    To specify combinations of these parameters, seperate them with commas.
  129. Example:
  130.  
  131.    SET BEDIT=MONO,BIOS,INTL
  132.  
  133.    Place the set command in your AUTOEXEC.BAT file so that it will always
  134. be present in your environment.  If you encounter an "Out of environment
  135. space" message, you can increase you environment size by specifying a new
  136. amount in your CONFIG.SYS file with the following statement"
  137.  
  138.    SHELL=c:\command.com /P /E:nnnn
  139.  
  140.    The nnnn should be replaced with the new environment space required.  512
  141. will give you quite a bit of space to work with.  If you use Microsoft 
  142. Windows 3.1, a value of 1024 or higher is recommended.
  143.    
  144.  
  145.  
  146. 2.1 The BEDIT Command Line
  147.  
  148.  
  149.    Format: BEDIT [path]filename [/N] [/B] [/I] [/V] 
  150.  
  151.    The filename is the file name of the file that you want to edit.  BEDIT 
  152. does not make an automatic backup, so back it up if you think there could    
  153. be problems.  You will be given a chance to change the file name before you
  154. save it.  The path is required if the file is not in the current directory.  
  155.    
  156.    /N will cause BEDIT to ignore the EMS parameter if it was specified in
  157.       the SET BEDIT= command.  No attempt will be made to use EMS memory.
  158.  
  159.    /B reverses the effect of the MONO parameter of the SET BEDIT= command.
  160.       If you have specified MONO, /B forces color display.  If you have
  161.       not specified MONO, back and white (monochrome) display is forced.
  162.  
  163.    /I reverses the effect of the INTL parameter of the SET BEDIT= command.
  164.       If you have specified INTL, /I will cause international charcters to
  165.       not be recognized.  If you have not specified INTL, /I forces recog-
  166.       nition of international characters.
  167.  
  168.    /V reverses the effect of the BIOS parameter of the SET BEDIT- command.
  169.       If you have specified BIOS, /V will force direct video memory writes
  170.       for the edit window.  If you have not specified BIOS, /V will force
  171.       BIOS writes.
  172.  
  173.  
  174.    Brackets ([]) indicate optional parameters.  Do not include the brackets
  175. in the command line.
  176.  
  177.    
  178.  
  179. 3.0 Operational Notes   
  180.  
  181.    It bears repeating at this point that BEDIT DOES NOT MAKE AN AUTOMATIC
  182. BACKUP of the edited file.  Since much of the usefulness of BEDIT is to just
  183. view or print the contents of a binary file, I did not want BEDIT cluttering
  184. up my directories with backup files.  You can, however, change the name 
  185. at SAVE time.
  186.  
  187.    If you intend to modify a file with BEDIT, I highly recommend making
  188. a backup file first or saving with a different name for obvious reasons.  
  189. Since BEDIT will allow you to change any file in any way, it is obviously 
  190. a very dangerous weapon in the hands of the unskilled or careless as well 
  191. as a very powerful tool in the hands of the skilled and careful.  Please 
  192. be careful!
  193.  
  194.    BEDIT reads the entire file into memory before any edits are performed.
  195. All changes are made only to the copy in memory until a SAVE is done.  If
  196. you have LIM 4.0 compatible EMS memory, you are limited in editable file size
  197. to the amount of free expanded memory.  If you have no expanded memory, or
  198. use the /N parameter, the file is loaded into conventional memory.  Depending
  199. on your memory configuration, you should be able to load a file of 400-500 
  200. Kbytes without the use of expanded memory.  If your available expanded
  201. memory is less than your available conventional memory, use the /N option
  202. to load larger files.  Usually there is more expanded memory than conven-
  203. tional, so excluding the /N option allows larger files to load.
  204.  
  205.  
  206.  
  207. 4.0 The Keyboard and Display
  208.  
  209.    The top line of the display shows the name, size, date and time of the
  210. file being edited.  It also contains the status of EMS memory usage and
  211. shows whether coses-sensitivity is set on or off.  There is also an area
  212. that will taggle between "HEX" and "ASCII" depending on which edit mode
  213. you are in.  The bottom line contains a quick reference of function keys
  214. and their usage.
  215.  
  216.    There are two modes of editing in BEDIT.  When you first load a file, the
  217. screen appears with both hex data and its ASCII representation displayed in 
  218. separate sections of the screen.  The cursor is initially placed in the hex 
  219. portion of the screen for editing in hex.  The character (represented by two 
  220. hex digits) at the cursor location appears red on color monitors.  The same 
  221. character on the ASCII (right) side will be light cyan.  All other data 
  222. characters are yellow.  As the cursor moves, you will see the light cyan 
  223. highlighting on the ASCII display move with the cursor and red letters of the 
  224. hex display.  Pressing TAB places the cursor in the ASCII portion and the 
  225. display at the cursor becomes red.  The corresponding position in the hex 
  226. data becomes light cyan.  TAB toggles the cursor back and forth between the 
  227. two editing areas.
  228.  
  229.    The ASCII display does not display every displayable character, but only
  230. letters and numbers and the more common punctuation symbols that are common
  231. to most printers.  All other characters appear as periods.  You can only 
  232. enter these characters on the ASCII side.  To enter exotic characters you 
  233. must use the hex representation on the hex side.  If a blank appears on the
  234. ASCII display, it is  because there is a true blank (hex 20) at that position.
  235.  
  236.    The following keys function as shown during editing:
  237.  
  238.    Page Down    - Display the next page of data.
  239.    Page Up      - Display the previous page of data.
  240.    Home         - Position the cursor at the start of the file.
  241.    End          - Position the cursor at the end of the file.
  242.    Down Arrow   - Move the cursor down one line.
  243.    Up Arrow     - Move the cursor up one line.
  244.    Right Arrow  - Move the cursor right one byte.  If at the end of a line, 
  245.                   move to the first byte of next line.
  246.    Left Arrow   - Move the cursor left one byte.  If at the start of a line,
  247.                   move to the last byte of the previous line.
  248.    Enter        - Same as right arrow.
  249.    Tab          - Swap the edit cursor between hex and ASCII modes.
  250.    Back Tab     - Clears the byte.  You must then type something in the byte
  251.                   before the cursor can be moved.
  252.    Insert       - Insert one byte.  Everything beyond this byte is shifted one 
  253.                   position and a hex 00 byte is inserted at the cursor.
  254.    Delete       - Delete one byte at the cursor.
  255.  
  256.    Function keys:
  257.  
  258.    F1     - Display the help screen.
  259.    F2     - Save any changes to the file on disk.
  260.    F3     - Insert a specified number of bytes at cursor.
  261.    F4     - Delete a specified number of bytes at cursor.
  262.    F5     - Move the cursor to a specified address within the file.
  263.    F6     - Print the file to LPT1:.  It appears in basically the same format
  264.             as displayed.
  265.    F7     - Toggle case-sensitivity for ASCII string searches.
  266.    F8     - Specify a search argument and locate the first occurrence of it in
  267.             the file.
  268.    F9     - Locate the next occurrence of the search argument.
  269.    F10    - Display status of clipboard and blocked data.
  270.    
  271.    Block keys:
  272.  
  273.    CTL-K B - Mark the start of a block to be deleted.
  274.    CTL-K K - Mark the end of a block to be deleted.
  275.    CTL-K H - Unmark a currently marked block.
  276.    CTL-K F - Fill a block with a given value.
  277.  
  278.    Clipboard function keys:
  279.  
  280.    CTL-INS  - Copy blocked data to clipboard.
  281.    CTL-DEL  - Cut bloacked data from the file and into the clipboard.
  282.    SHFT-INS - Paste clipboard contents at current cusor location.  The
  283.               contents are inserted.  Existing data is not overlaid.
  284.  
  285.    ESCAPE - Exit BEDIT.
  286.  
  287.  
  288.  
  289. 5.0 Modifying Data
  290.  
  291.    Modifying data is very simple, just type over it.  Use the TAB key to 
  292. select the hex or ASCII area.  A MODE indicator on the top line will change 
  293. to indicate whether you are in hex or ASCII edit mode.  When typing in the 
  294. hex area, only valid hex characters, 0-9 and A-F are allowed and upper case 
  295. is forced.  When entering data in the ASCII portion, only common printable 
  296. characters are allowed and upper or lower case may be used.
  297.  
  298.  
  299. 5.1 Filling a block of data   
  300.  
  301.    You may mark a block of data (see Deleting Data below) and then press
  302. CTL-K F.  You will be prompted for a fill value (in HEX or ASCII depending 
  303. on your edit mode) to overlay the contents of the blocked data. You may press 
  304. ESCAPE at the prompt to abort the fill operation.  Once you enter the value 
  305. and press enter, the blocked data is filled with the value you specified.
  306.  
  307.  
  308. 6.0 Deleting Data
  309.  
  310.    First place the cursor on the first byte of the data that you want to 
  311. delete.  Pressing the DELETE key deletes one byte of data at this position.
  312. Press DELETE repeatedly to delete several bytes.  If a large block needs to
  313. be deleted, press the F4 key and reply to the prompt with the number of bytes 
  314. you want to delete starting with the byte at the cursor.
  315.  
  316.    There is also a facility to mark a block and then delete it.  Press 
  317. CTL-K B to mark the first byte of a block, then press CTL-K K to mark the
  318. last byte of a block.  Then press DELETE or F4 to delete the block.  You
  319. can unmark a block by pressing CTL-K H.  You can also change the start or 
  320. end of the block at any time before the block is deleted or unmarked.  These 
  321. keys conform to WordStar-type conventions used in many text editors and word 
  322. processors today.  You can mark and delete blocks up to 32,767 bytes long.
  323.  
  324.  
  325.  
  326. 7.0 Inserting Data
  327.  
  328.    BEDIT, rather than using an insert mode, lets you insert bytes of binary 
  329. zeros, hex 00, into the file.  You can then type over the inserted bytes with 
  330. the data that you require.
  331.  
  332.    Place the cursor at the byte where you want the data inserted.  The data
  333. is inserted BEFORE the byte at the cursor.  Pressing the INSERT key inserts 
  334. one byte at a time.  If a large block needs to be inserted, press F3 and 
  335. specify the number of bytes you want inserted.  Once the null bytes appear,
  336. type over them if necessary.
  337.  
  338.    In order to add bytes to the end of the file, press END to go to the last
  339. byte of the file then press the right arrow.  Each press of the right arrow
  340. adds a byte to the file.  To enter a large block at the end of the file,
  341. press the right arrow once, then press F3 and specify the number of bytes
  342. needed less one (since you already added one when you pressed the right
  343. arrow).
  344.  
  345.    You can insert data from the clipboard by placing the cursor where you
  346. want the inserted data to begin and pressing SHIFT-INSERT.  If the clipboard
  347. is empty, nothing will happen.  Otherwise, the new data will appear inserted
  348. at the cursor location and marked as a block.  This is so that if you made a
  349. mistake and placed it improperly, you can just press DELETE to delete it,
  350. reposition your cursor and hit SHIFT-INSERT again to reinsert it.  Press
  351. CTL-K H to unmark the block.  The data remains in the clipboard, so it can 
  352. be inserted at multiple locations.
  353.  
  354.  
  355.  
  356. 8.0 Using the Clipboard (Cut, Paste, Copy)
  357.  
  358.    BEDIT contains a 4k clipboard for use in cutting, pasting and copying
  359. marked blocks. The clipboard uses CUA keyboard conventions.
  360.  
  361.    First, mark a block of data (see Deleteing Data for instructions on
  362. marking blocks), then press CTRL-INSERT to copy the block to the clipboard.
  363. Press SHIFT-DELETE if you want to copy the block to the keyboard and 
  364. delete it from its current position in the file (Cut).
  365.  
  366.    Once you have cut or copied data into the clipboard, you may paste 
  367. (insert) it anywhere in the file by using SHIFT-INSERT.  See Inserting Data
  368. for details on using the paste feature.
  369.  
  370.    If you try to cut or copy a block that is greater than 4k (4096 bytes),
  371. a message window will pop up and the current block marks must be adjusted
  372. to select only 4k or less at a time.
  373.   
  374.  
  375.  
  376. 9.0 Locating Data
  377.  
  378.    There are basically three ways to move the cursor to an area you want
  379. to edit.
  380.  
  381.    First you can use Page Down and Page Up to visually look for that area you
  382. want.  Primitive, but effective.
  383.  
  384.    Second, if you know the offset into the program of the area you want to 
  385. modify, press F5 and type the offset in hex.  
  386.  
  387.    The third method is to let the computer search for a known byte config-
  388. uration.
  389.  
  390.  
  391.  
  392. 9.1 Go to a Position in the File
  393.  
  394.    An offset or displacement is measured from the start of the file.  The
  395. first byte is offset 0, the second is 1, etc.  When you press F5, you are
  396. prompted for an offset which you provide in hex.  The cursor is then placed 
  397. at that address and display is updated to show the data at the cursor.
  398.  
  399.    This method is often used in applying documented patches supplied by a 
  400. software vendor.
  401.  
  402.  
  403.  
  404. 9.2 Search for Data
  405.  
  406.    Pressing F8 pops up a dialogue box that requests entry of a search argument.
  407. After supplying this argument, the cursor is positioned to the first 
  408. occurrence of that value in the file.  If it is not found, the cursor will 
  409. appear on the last byte of the file.  If a first occurrence is found, pressing
  410. F9 searches for the next occurrence.  If a second is found, pressing F9 again
  411. searches for the third occurrence, and so on.
  412.  
  413.    If the cursor is in the hex editing area, you will be prompted for up to
  414. 16 hex bytes of search argument (32 hex digits).  When the cursor is in
  415. the ASCII editing area, you may enter up to 32 ASCII characters for a search
  416. argument.  Admittedly the search arguments are small, but I have found that
  417. when editing binary files, you are generally not looking for long strings.
  418.  
  419.    Hex data is normally entered in sets of two hex digits (nibbles) since it
  420. takes two hex digits to represent one byte.  If you enter an odd number of hex 
  421. digits, a zero nibble is prepended to the argument.  For example, if you
  422. enter 18A, the resulting two bytes that are located are 01 8A.  
  423.  
  424.   No byte swapping is ever done to accommodate the PC's low-high storage 
  425. scheme of integer data.  So if you are looking for an integer value of 
  426. 1000 (decimal), hex 3E8, which is stored as hex E8 03, the search argument 
  427. you would provide is E803.  If you don't have a clue what this means, you 
  428. probably don't need to be concerned about using BEDIT in this manner.
  429.  
  430.   The F7 key is used to enable or disable case-sensitive searches when in
  431. ASCII character mode.  The current state is shown on the top line of the 
  432. display.  If ON, upper/lower case letters must match exactly.  If OFF,
  433. upper and lower case letters are equivalent.  The CASE mode has no effect
  434. on hex mode searches.
  435.  
  436.  
  437.  
  438. 10.0 Print the File
  439.  
  440.    Printing the file is easy.  You just press F6 and a window will pop up
  441. that tells you how many pages will be printed.  You may abort at this time
  442. by pressing ESCAPE or replying N to the "Continue? (Y/N)" prompt.  As pages
  443. are sent to the printer, the page number will be displayed.  You may press
  444. any key to cancel printing at the end of the current page.
  445.  
  446.    The output is sent to standard print (PRN).  The format is side-by-side 
  447. hex/ASCII like that displayed on the screen with offset addresses (dis-
  448. placements) at the start of each line.  880 (hex 370) bytes are printed on 
  449. each page.  The pages are numbered and the file name, size, date and time 
  450. appear at the beginning of each page.
  451.  
  452.    ALT-F6 allows you to supply a starting and ending address range to print.  
  453. The actual pages printed will probably not start and end with the adresses 
  454. you provided.  Rather the pages (as if you had printed the entire file) that 
  455. contain your starting address through your ending address will be the only
  456. pages printed.
  457.  
  458.    
  459.  
  460. 11.0 Saving the File
  461.  
  462.    Prior to pressing F2 to save the file, all modifications are only done in 
  463. memory.  F2 writes the image in memory over the file that was originally 
  464. loaded, and the changes become permanent.
  465.  
  466.    You may, however, change the file name at save time.  A dialogue box will
  467. appear with the current file name.  Accept it as is by pressing ENTER or
  468. modify it first.
  469.  
  470.    If the saved file name already exists you will be asked for verification
  471. before overwriting.
  472.  
  473.  
  474. 12.0 Exiting BEDIT
  475.  
  476.    To quit BEDIT and return to DOS, press ESC from the main edit screen.
  477. You will see a prompt: "Exit to DOS (Y/N)".  Any response other than Y or
  478. y will return you to the point you were when you pressed ESC.  A Y response
  479. returns you to DOS.
  480.  
  481.    If you wish to exit BEDIT without having to reply to the prompt, press
  482. ALT-X for a quick exit.  Any modifications since the last save are lost.
  483.  
  484.  
  485. 13.0 Help
  486.  
  487.    Pressing F1 pops up a help screen describing the editing and function keys.
  488. Pressing ESCAPE (or any key when last page is displayed) removes the help
  489. window and returns you to the editor.  Page Down and Page Up can be used to 
  490. move between help pages.
  491.  
  492.  
  493.  
  494. 14.0 A Useful Example - Modification of DOS 5's EDIT
  495.  
  496.    I prefer DOS 5's EDIT command by leaps and bounds over the EDLIN of
  497. previous DOSes, but there is one thing I especially don't like about it.
  498. When you select File/Open, it comes up with a default file list specification
  499. of *.TXT, like that is the only extension ever used for ASCII text files.  I
  500. would prefer *.* and let me choose from all of my files.  After reviewing
  501. all of the options, it appeared to me that there was no way to set this
  502. value to *.*.
  503.  
  504.    My next thought is that since there doesn't appear to be any type of
  505. configuration file for EDIT, the *.TXT string must be in the program, so
  506. I'll just pull out my trusty BEDIT and zap it to *.*.  Let's do it.
  507.  
  508.    Go to your directory where you keep DOS (usually C:\DOS).  Type BEDIT
  509. EDIT.COM.  Since we know we are looking for an ASCII string of *.TXT, press
  510. TAB to swap the cursor to the ASCII area and press F8 to search.  Enter
  511. *.TXT and press ENTER.  You now find that your cursor is positioned on the 
  512. last byte of the file.  This means it didn't find the string we were
  513. looking for.  Strange.
  514.  
  515.    But look! Right above our cursor are some messages that EDIT.COM displays.
  516. One of them reads, "Can not find file QBASIC.EXE."  Oh yeah, I read somewhere
  517. that the EDIT editor with DOS 5 was a version of the QBASIC editor.  Let's
  518. press ESCAPE, answer 'Y' and get back to the DOS prompt.  Now let's enter
  519. BEDIT QBASIC.EXE.
  520.  
  521.    Again let's go the ASCII area with TAB and search for *.TXT with F8.  
  522. Bingo! We found it.  
  523.    
  524.    In my copy of DOS 5.0's QBASIC.EXE, I am now at a displacement of hex 
  525. 3BCCA into the program and the cursor is positioned on the * of string *.TXT.  
  526. Hit the right arrow twice to position the cursor on the first T.  Type an 
  527. asterisk (*).  The string now shows *.*XT and the cursor is on the X.
  528. Lets change the X and T to hex 00s, which in most languages is used to 
  529. terminate a string.  Since we can't enter a binary zero field in the ASCII
  530. area, press TAB to switch the cursor back to the hex area.  Now type
  531. four 0s.  As you can see you have now changed the XT characters from
  532. hex 54 58 (the hex representation of X and T) to hex 00 00.
  533.  
  534.    This is what we wanted to do, so now let's save the file by pressing
  535. F2.  Since the file was not backed up beforehand, type in a new file name
  536. (QBASIC.1) just to make sure it works before we destroy the original. Exit 
  537. to DOS by pressing ESCAPE and Y.  Rename the original to QBASIC.BAK and 
  538. QBASIC.1 to QBASIC.EXE.  Now type EDIT and go to the File/Open screen.  Lo 
  539. and behold!  It now reads *.* and all of the files in the current directory 
  540. are displayed in the pick list.
  541.  
  542.    You can go delete QBASIC.BAK now.
  543.  
  544.  
  545.  
  546. APPENDIX A
  547.  
  548. Installation
  549.  
  550.     BEDIT is distributed in a ZIP file called BEDIT.ZIP.  It contains the
  551. following files:
  552.  
  553.         BEDIT.EXE         The executable file for BEDIT.
  554.         BEDIT.DOC         The documentation file.
  555.         BEDIT.Vnn         Modification descriptions for version nn.
  556.         PRODUCTS.DOC      A description of other Parity Solutions products
  557.                           available on CompuServe and ZiffNet.
  558.  
  559.     For best results, unzip the file into a directory on your PATH.  If you
  560. don't use a directory in your path, you will have to designate the directory
  561. containing BEDIT.EXE when executing the program.
  562.  
  563.     If you have a utility directory that is on your PATH, this is an excellent
  564. location for BEDIT.  An example installation would be:
  565.  
  566.     C:
  567.     CD \UTIL
  568.     COPY [path]BEDIT.ZIP
  569.     PKUNZIP BEDIT
  570.     DEL BEDIT.ZIP
  571.  
  572.     The PKUNZIP program is by PKWARE, Inc. and is available in many CompuServe
  573. forums under the file name of PKZ110.EXE or PK204x.EXE.  Since you are reading 
  574. this doc file, you have obviously already managed to unzip the distribution 
  575. file.  If it is not currently in your path, simply copy all of the files to a 
  576. directory in your path.  Keep the BEDIT.ZIP file anywhere you like, but give 
  577. plenty of copies, as is, to your friends.  If you register BEDIT, you are not 
  578. licensed to give your serial number to anybody without first removing the 
  579. serialization from your copy.
  580.  
  581.  
  582.  
  583.  
  584. APPENDIX B
  585.  
  586.  
  587. Disclaimer
  588.  
  589. BECAUSE OF THE DIVERSE NATURE OF COMPUTER EQUIPMENT AND EXPERTISE OF USERS,
  590. PARITY SOLUTIONS AND GARY C. CRIDER MAKE NO WARRANTY ON THE BEDIT PROGRAM
  591. WHATSOEVER, EXPRESS OR IMPLIED.  THE USER ASSUMES ALL RISK OF DAMAGE TO DATA 
  592. OR EQUIPMENT RESULTING DIRECTLY OR INDIRECTLY FROM THE USE OR MISUSE OF THIS 
  593. PROGRAM PRODUCT.  THE USER MUST BE AWARE THAT USING BEDIT TO MAKE ALTERATIONS 
  594. TO PROGRAMS OR DATA CAN RENDER THAT PROGRAM OR DATA USELESS.
  595.  
  596. USERS ARE ADVISED TO TEST MODIFICATIONS MADE WITH BEDIT THOROUGHLY ON FILES 
  597. FOR WHICH A BACKUP EXITS.  ANY LIABILITY OF THE AUTHOR OR PARITY SOLUTIONS IS 
  598. LIMITED TO REPLACEMENT OR REFUND OF THE REGISTRATION FEE.
  599.  
  600.  
  601.  
  602.  
  603. APPENDIX C
  604.  
  605.  
  606. Support
  607.  
  608.     I have tried to test the program to the fullest, but I am limited as to
  609. systems and configurations with which to test.  I have been programming for 18
  610. years and the one thing I know for sure is that bug free programs are very few
  611. and far between.  I can only promise to support the program to the best of my
  612. ability and provide fixes as expeditiously as possible.  BEDIT has been used
  613. at my home and work site extensively for several years and has proven to be a
  614. reliable tool.
  615.  
  616.     Anyone can report problems and suggest changes.  Registered users get top
  617. priority in resolving their problems.  There are three ways you can report
  618. problems.  The preferred method is to contact me through CIS mail (not forum
  619. messages).  My CIS ID is 71760,3413.  You can also write me at:
  620.  
  621.    Gary C. Crider
  622.    Parity Solutions
  623.    1105 Burgess Court
  624.    Arlington, TX 76015
  625.  
  626.     The last method is to phone (817) 467-7818.  Since I am the sole technical
  627. support and the line is also used for my network consulting business, it is
  628. often hard to get through to me.  Please call and leave a message between 7:30
  629. am and 5:30 pm Central time.
  630.  
  631.     No matter which method you use, please give a brief description of your
  632. problem, your registration serial number if you are registered, and your phone
  633. number.  If I need more information, I will contact you as soon as I can.
  634. When I have a solution, I will contact you however you prefer.
  635.  
  636.     I work full time, have a consulting business to run in my spare time and
  637. write programs instead of sleeping.  So please be a little patient with me.
  638.  
  639.  
  640.  
  641.  
  642. APPENDIX D
  643.  
  644.  
  645. Registration
  646.  
  647.  
  648.     I begin with an apology.  I hate programs that in any way inhibit func-
  649. tionality or performance for the shareware version.  But when it came down to
  650. feeding the family and paying the bills, I had a change of heart and inserted
  651. a pesky notice that pops up at the beginning and gets on your nerves.  I
  652. chose this approach above that of limited functionality.  The program's full
  653. capabilities are available for you to evaluate before you invest your hard-
  654. earned money.
  655.  
  656.     Registered users will receive a unique serial number and instructions on
  657. how to serialize the program.  Serialization can be re-applied to updated
  658. versions and in no way hinders your use of the program.  You can compress or
  659. decompress the program with no effect (LZEXE or PKLITE).  I use Fabrice
  660. Bellard's LZEXE program on BEDIT.EXE before distribution.
  661.  
  662.     As a registered user, you will be able to update without re-registration
  663. or additional fees.
  664.  
  665.     To register your copy, please send $24 US ($95 per file server on LANs) 
  666. check or money order (sorry, no credit cards yet) to:
  667.  
  668.    Gary C. Crider
  669.    Parity Solutions
  670.    1105 Burgess Court
  671.    Arlington, TX 76015
  672.  
  673.     Or, you can register single-use licenses online quickly and easily in 
  674. Compuserve.  Simply GO SWREG and register ID #751.  Your registration will be 
  675. added to your Compuserve bill.  International exchange was never easier. 
  676.  
  677.     If you send your CIS ID or register via SWREG, your registration will be 
  678. sent to you via CIS mail, along with instructions on how to serialize your copy 
  679. of BEDIT.  This usually involves one day or less turnaround.
  680.     
  681.     Each license gives you or your company a single use permit for BEDIT. It 
  682. is not restricted to a single machine as long as no two users can be simul-
  683. taneously using the program.  As Borland says, "treat it like a book."  As an 
  684. example, if you register BEDIT for your home computer, but during the day you 
  685. use a portable or a computer at work,  you may keep BEDIT on both machines as 
  686. long as no one is at home using it on your home computer.
  687.  
  688.     LAN licenses grant rights to all users of a file server.  If inter-
  689. networking, a license must exist for each file server that contains a copy
  690. of BEDIT.EXE.  If two or more file servers exist on a single LAN strictly for
  691. mirroring data and fault-tolerance, these will be counted as a single file
  692. server for licensing purposes.  If in doubt, contact me.  We can work out
  693. an agreement.
  694.  
  695.     Site licensing is also available on a negotiated price basis.  I guarantee
  696. it will be an economical alternative to buying licenses for each user.
  697.  
  698.     You may freely distribute the original BEDIT.ZIP file in any way you see
  699. fit other than selling it.  Users' groups and shareware distribution services
  700. may charge a reasonable fee for the medium and duplication costs.  Bulletin 
  701. boards may not charge additional fees for downloading this specific program, 
  702. other than normal connect-time and/or membership charges.
  703.  
  704.     You are NOT licensed to give anyone your serial number unless you first
  705. remove all serialization from your computer.  You may then no longer use that
  706. serial number.  Only Parity Solutions has the authority to issue serial
  707. numbers.
  708.  
  709.